layui.use([ "global" ], function() {
	var global = layui.global;
	global.init({url:"/img/type/",title:"类型"});
	global.initForm("/img/type/detail","form");
	global.submit("/img/type/");
	global.upload(function(res){
		$("#cover").val(res.data);
	});
});
